.class Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;
.super Landroid/widget/BaseAdapter;
.source "ListItemDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/commonui/ListItemDialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ItemListAdapter"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;


# direct methods
.method public constructor <init>(Lcom/htc/android/footprints/commonui/ListItemDialog;)V
    .locals 0
    .parameter

    .prologue
    .line 88
    iput-object p1, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 89
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v0, v0, Lcom/htc/android/footprints/commonui/ListItemDialog;->mItemList:[Ljava/lang/String;

    array-length v0, v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .parameter "position"

    .prologue
    .line 98
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 103
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 8
    .parameter "idx"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 107
    const/4 v3, 0x0

    .line 109
    .local v3, item:Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;
    if-nez p2, :cond_1

    .line 110
    iget-object v4, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v4, v4, Lcom/htc/android/footprints/commonui/ListItemDialog;->mIconList:[I

    if-nez v4, :cond_0

    .line 111
    new-instance v3, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;

    .end local v3           #item:Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;
    iget-object v4, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v5, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    invoke-virtual {v5}, Lcom/htc/android/footprints/commonui/ListItemDialog;->getContext()Landroid/content/Context;

    move-result-object v5

    iget-object v6, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v6, v6, Lcom/htc/android/footprints/commonui/ListItemDialog;->mItemList:[Ljava/lang/String;

    aget-object v6, v6, p1

    const/4 v7, 0x0

    invoke-direct {v3, v4, v5, v6, v7}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;-><init>(Lcom/htc/android/footprints/commonui/ListItemDialog;Landroid/content/Context;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    .line 124
    .restart local v3       #item:Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;
    :goto_0
    return-object v3

    .line 114
    :cond_0
    iget-object v4, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v4, v4, Lcom/htc/android/footprints/commonui/ListItemDialog;->mIconList:[I

    aget v2, v4, p1

    .line 115
    .local v2, id:I
    iget-object v4, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    invoke-virtual {v4}, Lcom/htc/android/footprints/commonui/ListItemDialog;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 116
    .local v1, drawable:Landroid/graphics/drawable/Drawable;
    new-instance v3, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;

    .end local v3           #item:Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;
    iget-object v4, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v5, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    invoke-virtual {v5}, Lcom/htc/android/footprints/commonui/ListItemDialog;->getContext()Landroid/content/Context;

    move-result-object v5

    iget-object v6, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v6, v6, Lcom/htc/android/footprints/commonui/ListItemDialog;->mItemList:[Ljava/lang/String;

    aget-object v6, v6, p1

    invoke-direct {v3, v4, v5, v6, v1}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;-><init>(Lcom/htc/android/footprints/commonui/ListItemDialog;Landroid/content/Context;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    .line 117
    .restart local v3       #item:Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;
    goto :goto_0

    .line 120
    .end local v1           #drawable:Landroid/graphics/drawable/Drawable;
    .end local v2           #id:I
    :cond_1
    move-object v0, p2

    check-cast v0, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;

    move-object v3, v0

    .line 121
    iget-object v4, p0, Lcom/htc/android/footprints/commonui/ListItemDialog$ItemListAdapter;->this$0:Lcom/htc/android/footprints/commonui/ListItemDialog;

    iget-object v4, v4, Lcom/htc/android/footprints/commonui/ListItemDialog;->mItemList:[Ljava/lang/String;

    aget-object v4, v4, p1

    invoke-virtual {v3, v4}, Lcom/htc/android/footprints/commonui/ListItemDialog$DialogListItem;->setText(Ljava/lang/String;)V

    goto :goto_0
.end method
